import InteractiveBase from "../LevelCommon/InteractiveBase";

export default class CameraMoveStack {

    /** 要移动的目标相机位置*/
    public targetPos: Laya.Transform3D;

    /** 当前行为是哪个交互物体的逻辑*/
    public curInteractObj: InteractiveBase;

    /** 移动相机速度*/
    public moveTime: number;

    /** 出栈逻辑*/
    private popStackLogic: Function;

    public SetData(targetPos: Laya.Transform3D, popStackLogic: Function,
        curInteractObj: InteractiveBase, moveTime: number): void {
        this.targetPos = targetPos;
        this.popStackLogic = popStackLogic;
        this.curInteractObj = curInteractObj;
        this.moveTime = moveTime;
    }
    
    /** 出栈*/
    public PopStack(obj: any): void {
        if (this.popStackLogic != null) {
            this.popStackLogic(obj);
        }
    }
}